CSUtils.AField = function (index, fieldType, o_chineseName, explain, fieldName, showType, o_valueMin, o_valueMax, linkStruct, o_sortLayer, DeclaringType) {
    this.x__index = index;
    this.x__fieldName = fieldName;
    this.x__chineseName = o_chineseName;
    this.x__fieldType = fieldType;
    this.x__chineseExplain = explain;
    this.x__showType = showType;
    this.x__valueMin = o_valueMin;
    this.x__valueMax = o_valueMax;
    this.x__rfStruct = linkStruct;
    this.x__sortLayer = o_sortLayer;
    this.x__DeclaringType = DeclaringType;
    if (this.x__fieldType != null) {
        this.x__fieldType = fieldType;
        // e_fieldTypeIsSimpleType = CBaseType.IsSimpleType(e_fieldType);
        // if (e_fieldType == EBaseType.e018_array || e_fieldType == EBaseType.e019_arrayArray) {
        //     Type
        //     arraySubType = o_fieldType.GetArraySubType();
        //     e_fieldSubType = CBaseType.GetType(arraySubType);
        //     e_fieldSubTypeIsSimpleType = CBaseType.IsSimpleType(e_fieldSubType);
        // }
    }
    // switch (e_fieldType) {
    //     case EBaseType.e002_sbyte:
    //     case EBaseType.e003_byte:
    //     case EBaseType.e004_short:
    //     case EBaseType.e005_ushort:
    //     case EBaseType.e006_int:
    //     case EBaseType.e007_uint:
    //     case EBaseType.e010_long:
    //     case EBaseType.e011_ulong:
    //         //this.o_valueDef = (int)Parse(o_valueDef, 0);
    //         this.o_valueMin = (int)
    //         Parse(o_valueMin, 0);
    //         this.o_valueMax = (int)
    //         Parse(o_valueMax, 105);
    //         break;
    //     case EBaseType.e008_float:
    //     case EBaseType.e009_double:
    //         //this.o_valueDef = (float)Parse(o_valueDef, 0);
    //         this.o_valueMin = Parse(o_valueMin, 0);
    //         this.o_valueMax = Parse(o_valueMax, 102);
    //         break;
    // }
}

CSUtils.AField.prototype = {
    x__index: 0,
    x__fieldName: "",
    x__chineseName: "",
    x__chineseExplain: "",
    x__fieldType: "",
    x__fieldType: "",
    x__fieldSubType: "",
    x__fieldTypeIsSimpleType: "",
    x__fieldSubTypeIsSimpleType: "",
    x__tableColumeMinWidth: 10,
    x__valueMin: 0,
    x__valueMax: 100,
    x__showType: "",
    x__sortLayer: "",
    x__rfStruct: "",
    x__DeclaringType: "",

    get o_index() {
        return this.x__index;
    },
    get o_fieldName() {
        return this.x__fieldName;
    },
    get o_chineseName() {
        return this.x__chineseName;
    },
    get o_chineseExplain() {
        return this.x__chineseExplain;
    },
    get o_fieldType() {
        return this.x__fieldType;
    },
    get e_fieldType() {
        return this.x__fieldType;
    },
    get e_fieldSubType() {
        return this.x__fieldSubType;
    },
    get e_fieldTypeIsSimpleType() {
        return x__fieldTypeIsSimpleType;
    },
    get e_fieldSubTypeIsSimpleType() {
        return x__fieldSubTypeIsSimpleType;
    },
    get o_tableColumeMinWidth() {
        return x__tableColumeMinWidth;
    },
    get o_valueMin() {
        return x__valueMin;
    },
    get o_valueMax() {
        return x__valueMax;
    },
    get o_showType() {
        return x__showType;
    },
    get o_sortLayer() {
        return x__sortLayer;
    },
    get o_rfStruct() {
        return x__rfStruct;
    },
    get o_declaringType() {
        return x__declaringType;
    },
    toString: function () {
        if (string.IsNullOrEmpty(o_chineseName) == false) {
            return o_chineseName;
        }
        return o_fieldName;
    }
}
